package com.lq.educationsystem.student.feign;

import com.lq.educationsystem.common.entiy.ExaminationTb;
import com.lq.educationsystem.common.entiy.StudentExaminationTb;
import com.lq.educationsystem.common.util.Result;
import com.lq.educationsystem.common.util.ResultPage;
import com.lq.educationsystem.common.vo.ExaminationPageVo;
import org.apache.ibatis.annotations.Param;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@Component
@FeignClient(name = "lq-examination",url = "http://localhost:8000/")
public interface ExaminationFeign {
    //增加
    @RequestMapping("/examination/base/query/examination")
    public ResultPage<ExaminationTb> queryExaminationInfoBySubjectId(@RequestBody List<Integer> collectSubjectIdInfoList);

//    @RequestMapping("/examination/student/base/query/batch/student")
//    public ResultPage<StudentExaminationTb> queryStudentExaminationInfoByStudentIdAndExaminationId(@RequestParam("examinationIdList") List<Integer> examinationIdList,@RequestParam("studentId") Integer studentId);


    /**
     * 根据学生id和考试id批量查询数据
     */
    @RequestMapping("/examination/student/base/query/batch/student")
    public ResultPage<StudentExaminationTb> queryStudentExaminationInfoByStudentIdAndExaminationId(@RequestBody List<Integer> examinationIdList, @RequestParam("studentId") Integer studentId);

}
